package cn.jiyun.fenlei.product.mapper;

import cn.jiyun.model.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    @Select("select * from product order by paixu desc ")
    List<Product> findAll();
@Update("update product set status=#{status} where id=#{id} ")
    void updatestatus(@Param("id") Integer id,@Param("status") Integer status);
}
